package io;

import java.io.*;
import java.nio.charset.StandardCharsets;

public class PWDemo {
    public static void main(String[] args) throws IOException {
        PrintWriter pw = new PrintWriter("t7.txt");
        pw.println("五星红旗迎风飘扬~");
        pw.println("胜利歌声多么响亮！");
        pw.println(" ");
        pw.println("歌唱我们亲爱的祖国~");
        pw.println("从今走向繁荣富强！");

        System.out.println("输入完毕！");
pw.close();











        /*
        FileOutputStream fos = new FileOutputStream("t5.txt");
        OutputStreamWriter osw = new OutputStreamWriter(fos, StandardCharsets.UTF_8);
        BufferedWriter bw = new BufferedWriter(osw);
        bw.write("窗外的麻雀，在电线杆上多嘴~");
        bw.write("你说这一句，很有夏天的感觉");
        System.out.println("写完毕");
        bw.flush();
        bw.close();

         */


    }
}
